package entity;

import java.io.Serializable;
import java.util.ArrayList;
import java.util.List;

public class Grade implements Serializable {
    private Integer id;
    private String gname;

    List<Subject> sub=new ArrayList<>(0);

    public List<Subject> getSub() {
        return sub;
    }

    public void setSub(List<Subject> sub) {
        this.sub = sub;
    }

    public Grade() {
    }

    public Grade(Integer id, String gname) {
        this.id = id;
        this.gname = gname;
    }

    public Integer getId() {
        return id;
    }

    public void setId(Integer id) {
        this.id = id;
    }

    public String getGname() {
        return gname;
    }

    public void setGname(String gname) {
        this.gname = gname;
    }

    @Override
    public String toString() {
        return "Grade{" +
                "id=" + id +
                ", gname='" + gname + '\'' +
                '}';
    }
}
